<template lang="html">
  <div class="header">
    <div class="header-left"><div class="iconfont icon-back">&#xe605;</div></div>
    <div class="header-input"><i class="iconfont icon-search">&#xe64a;</i>输入城市景点/游玩/主题</div>
    <div class="header-right">
      <router-link :to="{ name: 'City', params: {} }">{{city}}</router-link>
      <i class="iconfont icon-arrow">&#xe600;</i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/variable.styl'
  .header
    height: $headerHeight
    line-height: $headerHeight
    background-color: $bgColor
    color: #fff
    display: flex
    .header-left
      width: .64rem
      float: left
      .icon-back
        font-size: .40rem
        text-align: center
    .header-input
      flex: 1
      background-color: #fff
      border-radius: .1rem
      margin: .12rem 0 .12rem .2rem
      color: #ccc
      line-height: .62rem
      padding-left: .2rem
      .icon-search
        padding-right: .1rem
    .header-right
      width: 1.24rem
      float: right
      text-align: center
      a
        color: #fff
      .icon-arrow
        font-size: .30rem
        padding-left: .05rem
</style>
